package com.example.spring5.springframwork;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @Author: Hu Rui
 * @Date: 2021/11/6 9:15
 */
public class Test {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext ac = new AnnotationConfigApplicationContext(AppConfig.class);
        UserService userService = ac.getBean("myFactoryBean",UserService.class);
        userService.test();
    }
}
